from playwright.sync_api import Playwright, sync_playwright


def run(playwright: Playwright) -> None:
    browser = playwright.chromium.connect_over_cdp('http://localhost:8888')
    page = browser.contexts[0].pages[0]
    page.goto("http://81.70.166.221:8080/system/user")

    page.pause()
    # ---------------------
    page.close()


with sync_playwright() as playwright:
    run(playwright)
